;
(function () {
    System.register(['./index-legacy-BBSVeb5I.js'], function (exports, module) {
        'use strict';

        var defineComponent, createElementBlock, createCommentVNode, renderSlot, normalizeClass, createTextVNode,
            openBlock, createVNode, __unplugin_components_0, createBaseVNode, toDisplayString, mergeModels, useModel,
            ref, watchEffect;
        return {
            setters: [function (module) {
                defineComponent = module.d;
                createElementBlock = module.a;
                createCommentVNode = module.k;
                renderSlot = module.I;
                normalizeClass = module.n;
                createTextVNode = module.v;
                openBlock = module.o;
                createVNode = module.q;
                __unplugin_components_0 = module.ag;
                createBaseVNode = module.b;
                toDisplayString = module.t;
                mergeModels = module.J;
                useModel = module.m;
                ref = module.e;
                watchEffect = module.U;
            }],
            execute: function execute() {
                var _hoisted_1$2 = {
                    class: "flex-center flex-col gap-1 color-fade"
                };
                var _sfc_main$2 = exports("a", /* @__PURE__ */defineComponent({
                    __name: "Empty",
                    props: {
                        icon: {}
                    },
                    setup: function setup(__props) {
                        return function (_ctx, _cache) {
                            return openBlock(), createElementBlock("div", _hoisted_1$2, [_ctx.icon ? (openBlock(), createElementBlock("div", {
                                key: 0,
                                class: normalizeClass(_ctx.icon)
                            }, null, 2)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default", {}, function () {
                                return [_cache[0] || (_cache[0] = createTextVNode("暂无数据"))];
                            })]);
                        };
                    }
                }));
                var _hoisted_1$1 = {
                    class: "grid h-full place-content-center place-items-center gap-2 text-sm"
                };
                var _hoisted_2$1 = {
                    class: "color-fade"
                };
                var _sfc_main$1 = exports("b", /* @__PURE__ */defineComponent({
                    __name: "Loading",
                    props: {
                        desc: {
                            default: "正在加载"
                        }
                    },
                    setup: function setup(__props) {
                        return function (_ctx, _cache) {
                            var _component_Spinner = __unplugin_components_0;
                            return openBlock(), createElementBlock("div", _hoisted_1$1, [createVNode(_component_Spinner, {
                                class: "mb-1 h-8 w-8"
                            }), renderSlot(_ctx.$slots, "default", {}, function () {
                                return [createBaseVNode("span", _hoisted_2$1, toDisplayString(_ctx.desc), 1)];
                            })]);
                        };
                    }
                }));
                var _hoisted_1 = ["open"];
                var _hoisted_2 = {
                    class: "block"
                };
                var _hoisted_3 = {
                    key: 0,
                    class: "bg-base"
                };
                var _sfc_main = exports("_", /* @__PURE__ */defineComponent({
                    __name: "SimpleCollapse",
                    props: /* @__PURE__ */mergeModels({
                        active: {
                            type: Boolean
                        },
                        headerClass: {}
                    }, {
                        "modelValue": {
                            default: false
                        },
                        "modelModifiers": {}
                    }),
                    emits: /* @__PURE__ */mergeModels(["show"], ["update:modelValue"]),
                    setup: function setup(__props, _ref) {
                        var __emit = _ref.emit;
                        var emit = __emit;
                        var open = useModel(__props, "modelValue");
                        var hasShown = ref(open.value);
                        if (!hasShown.value) {
                            var stop = watchEffect(function () {
                                if (open.value) {
                                    emit("show");
                                    hasShown.value = true;
                                    stop();
                                }
                            });
                        }
                        return function (_ctx, _cache) {
                            return openBlock(), createElementBlock("details", {
                                open: open.value,
                                class: normalizeClass(["relative border rounded-md", _ctx.active ? "border-primary-500" : "border-base"]),
                                onToggle: _cache[0] || (_cache[0] = function ($event) {
                                    return open.value = $event.target.open;
                                })
                            }, [createBaseVNode("summary", _hoisted_2, [createBaseVNode("div", {
                                flex: "~ gap-2 items-center",
                                class: normalizeClass(["cursor-pointer select-none bg-hover p-2 text-0.9rem", _ctx.headerClass])
                            }, [_cache[1] || (_cache[1] = createBaseVNode("div", {
                                class: "i-ph:caret-right flex-none op50 [details[open]_&]:rotate-90"
                            }, null, -1)), renderSlot(_ctx.$slots, "title"), _cache[2] || (_cache[2] = createBaseVNode("div", {
                                class: "flex-auto"
                            }, null, -1)), renderSlot(_ctx.$slots, "actions")], 2)]), hasShown.value ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)], 42, _hoisted_1);
                        };
                    }
                }));
            }
        };
    });
})();
